package com.ruizhong.centercontroll.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruizhong.centercontroll.dao.TSystemMapper;
import com.ruizhong.centercontroll.entity.TSystem;
import com.ruizhong.centercontroll.service.TOtherSystemService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TOtherSystemServiceImpl extends ServiceImpl<TSystemMapper,TSystem> implements TOtherSystemService {
    @Override
    public List<TSystem> getAllSystems() {
        return list();
    }

    @Override
    public List<TSystem> searchSystemsByName(String inputForSearch) {
        List<TSystem> list = lambdaQuery()
                .like(TSystem::getSystemName, inputForSearch)
                .list();
        return list;
    }
}
